import { post } from '@/utils/request'

// 分页查询公告信息
export const getWikiList = p => post(`/service-system/b/sysWiki/v1/pageList`, p)
// 查看公告信息
export const viewWiki = p => post(`/service-system/b/sysWiki/v1/view/${p}`, p)
// 修改公告信息
export const modifyWiki = p => post(`/service-system/b/sysWiki/v1/modify`, p)
// 添加公告信息
export const addWiki = p => post(`/service-system/b/sysWiki/v1/add`, p)
// 删除公告信息
export const delWiki = p => post(`/service-system/b/sysWiki/v1/del/${p}`, p)
// 公告信息状态修改
export const changeStatus = p => post(`/service-system/b/sysWiki/v1/changeStatus/${p.id}/${p.status}`, p)
// 分页查询公告信息
export const listAttachsByWikiId = p => post(`/service-system/b/sysWiki/v1/listAttachsByWikiId/${p}`, p)
// 首页展示公告信息
export const listSimpleWiki = p => post(`/service-system/b/sysWiki/v1/listSimpleWiki/${p}`, p)
